home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / PixelWorld classes 1.2 / CPixelWorldPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  2.3 KB  |  69 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CPixelWorldPane.h
  3.  
  4.                     Interface for the PixelWorldPane Class
  5.     
  6.     The CPixelWorldPane class is a subclass of CPanorama that uses a 
  7.     CPixelWorld object to display a color or grayscale image that is 
  8.     kept offscreen.  An offscreen color graphics device (GDevice) and an 
  9.     offscreen color graphics port (CGrafPort) are used to maintain this 
  10.     offscreen world.  This implementation supports 1,2,4 and 8 bit pixel 
  11.     depths.  Pixel depths of 16 and 32 bits are not currently supported.  
  12.     
  13.     This implementation does not depend upon any 32-Bit QuickDraw features.  
  14.     Future versions of the CPixelWorld class will provide support for pixel 
  15.     depths of 16 and 32 bits, and for GWorlds under 32-Bit QuickDraw.  
  16.     
  17.     SUPERCLASS = CPanorama
  18.     
  19.     This implementation is based in part on material copyrighted by 
  20.     Symantec Corporation and Apple Computer, Inc.  
  21.     
  22.     Copyright © 1992 Vincent R. Vann, Jr.  All rights reserved.  
  23.     
  24.     Version 1.2 Changes:
  25.     [
  26.         - changed class definition to make the superclass CPanorama 
  27.           instead of CBitMapPane as in the original implementation.  
  28.         - modified the SetPixelWorld method so that the bounds, position, 
  29.           and origin of the PixelWorldPane are changed to reflect the 
  30.           new PixelWorld's coordinates.  This method also refreshes the 
  31.           pane so that the image of the new PixelWorld will be drawn.  
  32.     ]
  33.     
  34.  ******************************************************************************/
  35.  
  36. #define _H_CPixelWorldPane
  37.  
  38. #include "CPanorama.h"                    /* Interface for its superclass */
  39. #include "CPixelWorld.h"
  40.  
  41. class CPixelWorldPane : public CPanorama    /* Class Declaration        */
  42. {
  43. public:
  44.                                 /** Instance Variables **/
  45.                                 
  46.     CPixelWorld        *itsPixelWorld;
  47.  
  48.                                 /** Instance Methods **/
  49.  
  50.                                     /** Contruction **/
  51.     void    IPixelWorldPane( CView *anEnclosure, CBureaucrat *aSupervisor,
  52.                             short aWidth, short aHeight,
  53.                             short aHEncl, short aVEncl,
  54.                             SizingOption aHSizing, SizingOption aVSizing,
  55.                             LongRect *aBounds, CPixelWorld *aPixelWorld);
  56.     void    IPixelWorldPaneX( void);
  57.     
  58.                                     /** Destruction **/
  59.     virtual void         Dispose( void);
  60.     
  61.                                     /** Accessing **/
  62.     virtual CPixelWorld* GetPixelWorld( void);
  63.     virtual void         SetPixelWorld( CPixelWorld *aPixelWorld);
  64.     
  65.                                     /** Drawing **/
  66.     virtual void         Draw( Rect *area);
  67. };
  68.  
  69.